package cn.xerllent.wxtp.handler;

import java.util.Map;

import org.springframework.stereotype.Component;

import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;
import me.chanjar.weixin.common.session.WxSessionManager;
import me.chanjar.weixin.cp.bean.message.WxCpTpXmlMessage;
import me.chanjar.weixin.cp.bean.message.WxCpXmlOutMessage;
import me.chanjar.weixin.cp.tp.service.WxCpTpService;

/**
 *  @author sxh
 */
@Component
@Slf4j
public class LogHandler extends AbstractHandler {

  @Override
  public WxCpXmlOutMessage handle(WxCpTpXmlMessage wxMessage,
              Map<String, Object> context,
              WxCpTpService wxCpTpService,
              WxSessionManager sessionManager) {
	    log.info("\n接收到请求消息，内容：{}", JSONUtil.toJsonStr(wxMessage));
	    return null;
  }

}
